import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/css/global.css'
import moment from 'moment';
import {hasPermission} from '@/utils/permissionDirect'
import '@/utils/directives'


const Plugins = [hasPermission]
Plugins.map((plugin)=>{
  Vue.use(plugin)
})
Vue.prototype.moment  =  moment;
Vue.config.productionTip = false
Vue.use(ElementUI);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
